Skip to content

Update to GHC 9.14.1 - #4

Merged
Pitan-andela merged 2 commits into
codewars:mainfrom
Pitan-andela:ghc-9.14.1
Nov 30, 2026
Merged

Pitan-andela merged 2 commits into
codewars:mainfrom
Pitan-andela:ghc-9.14.1

Conversation

@Pitan-andela

@Pitan-andela Pitan-andela commented Nov 28, 2026 •

Copy link
Copy Markdown
Collaborator

Codewars now runs Haskell kata on GHC 9.14.1. This updates the image here to match the one Codewars uses, so authors can see the packages and versions that are available.

  • Replaces the GHC 9.2.5 Stack workspace (package.yaml, stack.yaml) with the 9.14.1 Cabal project: rootfs/opt/haskell/challenge.cabal lists the packages and cabal.project.freeze pins every version.
  • New packages since 9.2.5: fakedata, heaps, infinite-list and primes.
  • The Dockerfile builds the packages into a GHC environment file, so ghc and runghc use them directly. The build runs a smoke test that uses every package.
  • bin/run uses the compile command Codewars runs for 9.14.1, including -XGHC2021.
  • The README lists the packages and versions and explains how code is compiled.
  • The release workflow now publishes amd64 and arm64 images. Each platform builds on a native GitHub runner (ubuntu-24.04 and ubuntu-24.04-arm) and pushes by digest. A final job combines them under one multi-platform tag and fails if either platform is missing. Until now only amd64 was published.
  • CI builds and runs the example on both platforms.
  • CI actions are updated to current major versions.

GHC 9.2.5 stays available from the existing 9.2.5 tag. After merging, pushing a 9.14.1 tag publishes ghcr.io/codewars/haskell:9.14.1 and :latest.

Testing

  • docker build passes locally on arm64. The smoke test passes 20 of 20, and bin/run passing passes on the built image.
  • bin/run passing also passes against the image Codewars runs in production.
  • I haven't run an amd64 build. CI on this PR covers that.
  • actionlint passes on the release workflow. The platform check passes on a multi-arch image and fails on the current amd64-only ghcr.io/codewars/haskell:9.2.5. The release workflow itself only runs when a tag is pushed, so it hasn't run yet.

@Pitan-andela
Pitan-andela merged commit 53f64d4 into codewars:main Nov 30, 2026
2 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant